\name{QueryWithIDs}
\alias{QueryWithIDs}
%- Also NEED an '\alias' for EACH other topic documented here.
\encoding{UTF-8}
\title{
Query DatasetVector with ids
}
\description{
根据ID数组查询矢量数据集。被查询数据集支持点、线、面和属性表数据集。
}
\usage{
QueryWithIDs(obj, ids, id.field = "SMID", has.geometry=TRUE)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{obj}{
  被查询的矢量数据集
}
  \item{ids}{
  id 数组，id 必须是 integer
}
  \item{id.field}{
  指定的 id 字段，默认是 “SmID”字段，用户可以指定相应的字段为ID字段。
}
  \item{has.geometry}{
查询结果是否包含几何对象。 
}

}
\details{
%%  ~~ If necessary, more details than the description above ~~
}
\value{
如果成功，返回一个list，list第一个项为几何对象组成的list，list的第二项为一个data.frame对象，data.frame每项为几何对象的属性字段值。
如果失败，返回NULL。
}
\references{
%% ~put references to the literature/web site here ~
}
\author{
%%  ~~who you are~~
}
\note{
%%  ~~further notes~~
}

%% ~Make other sections like Warning with \section{Warning }{....} ~

\seealso{
\code{\link{QueryWithGeometry}}, \code{\link{Query}}, \code{\link{QueryWithIDs2DF}}
}
\examples{

server <- system.file("/sampledata/ChangChun.udb", package="RSuperMap")
ds <- OpenDatasource(server, alias = "test", engine = "udb")

dt <- GetDataset(ds, "Park")
ids <- c(1:100L)
res <- QueryWithIDs(dt, ids)

CloseDatasource(ds)
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{query}
\keyword{supermap}
